//
//  YHSelectedTableView.h
//  FAKER
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 YHLai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseClassTableView.h"

typedef void (^YHScrollToTopBlock)(CGFloat);
@protocol YHRemoveLoadingViewDelegate <NSObject>
- (void)yhRemoveLoadingView;
@end

@interface YHSelectedTableView : UIView<UITableViewDataSource, UITableViewDelegate, UIScrollViewDelegate>

@property(nonatomic, strong)BaseClassTableView *tableView;
@property(nonatomic, strong)NSMutableArray *dataSourceArray;
@property(nonatomic, strong)NSString *currentURLString;//当前页面urlString
@property(nonatomic, strong)NSString *nextURLString;//上拉加载urlString
@property(nonatomic, copy)YHScrollToTopBlock scrollToTopBlock;
@property(nonatomic, assign)BOOL startRefresh;

- (instancetype)initWithFrame:(CGRect)frame
                    URLString:(NSString *)urlString;
@property(nonatomic, assign)id<YHRemoveLoadingViewDelegate>loadingDelegate;

@end
